<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'bonus_plane'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-function.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
       <?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <?php include 'modules/head.php'; ?>

</head>

<body>

<div id="topbar">   <?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>


        <div id="content" class="layui-form">
            <h1> 提成信息 </h1>


            <div class="detail-box member-edit-box layui-form">

                <div class="detail-boxes">
                    <ul class="detail-boxing">

                        <?
                        $nowpageid = $_GET["nowpageid"];
                        ?>

                        <form  method="post" action="detail-edit-function.php?nav-itemed=commission&nowpageid=<?echo $nowpageid?>" enctype="multipart/form-data" class="layui-form">


                            <input type="hidden" name="nid" value="<? echo $detail['nid']?>">


                            <div class="layui-form-item">
                                <label class="layui-form-label">项目类型</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="ai_name" value="广告工程" title="广告工程" <? if ($detail['name'] == "广告工程") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="平面设计" title="平面设计" <? if ($detail['name'] == "平面设计") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="微信推广" title="微信推广" <? if ($detail['name'] == "微信推广") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="活动策划" title="活动策划" <? if ($detail['name'] == "活动策划") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="微信平台" title="微信平台" <? if ($detail['name'] == "微信平台") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="网站开发" title="网站开发" <? if ($detail['name'] == "网站开发") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="系统开发" title="系统开发" <? if ($detail['name'] == "系统开发") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="微信广告" title="微信广告" <? if ($detail['name'] == "微信广告") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="工业设计" title="工业设计" <? if ($detail['name'] == "工业设计") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="视频媒体" title="视频媒体" <? if ($detail['name'] == "视频媒体") {echo "checked";} ?>>
                                    <input type="radio" name="ai_name" value="室内设计" title="室内设计" <? if ($detail['name'] == "室内设计") {echo "checked";} ?>>

                                </div>
                            </div>


                            <div class="layui-form-item">
                                <label class="layui-form-label">介绍人</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_agent" lay-verify="required" placeholder="介绍人" autocomplete="off" class="layui-input" value="<? echo $detail['agent']?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">业务开发</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_sales" lay-verify="required" placeholder="业务开发" autocomplete="off" class="layui-input" value="<? echo $detail['sales']?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">项目负责</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_respon" lay-verify="required" placeholder="项目负责" autocomplete="off" class="layui-input" value="<? echo $detail['respon']?>">
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">跟单</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_service" lay-verify="required" placeholder="跟单" autocomplete="off" class="layui-input" value="<? echo $detail['service']?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">设计师</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_designer" lay-verify="required" placeholder="设计师" autocomplete="off" class="layui-input" value="<? echo $detail['designer']?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">程序员</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_programer" lay-verify="required" placeholder="程序员" autocomplete="off" class="layui-input" value="<? echo $detail['programer']?>">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">编辑</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ai_editor" lay-verify="required" placeholder="编辑" autocomplete="off" class="layui-input" value="<? echo $detail['editor']?>">
                                </div>
                            </div>




                            <div class="layui-form-item">
                                <label class="layui-form-label">开始日期</label>
                                <div class="layui-input-block">

                                    <input type="text" name="ai_startdate" id="date" autocomplete="off" class="layui-input"  value="<? echo $detail['startdate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
                                </div>
                            </div>



                            <div class="layui-form-item">
                                <label class="layui-form-label">结束日期</label>
                                <div class="layui-input-block">

                                    <input type="text" name="ai_enddate" id="date" autocomplete="off" class="layui-input"  value="<? echo $detail['enddate']?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
                                </div>
                            </div>






                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit  type="submit">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>



                        </form>



                    </ul>
                </div>
            </div>

            <!--content端點01-->
        </div>
        <!--maincontent端點01-->
        <br class="clearfloat"/>
    </div>
    <!--container端點01-->
</div>


<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?> </body>
</html>
